package com.wind.taobao.api.trade.taobaoke.rest
{
	import com.wind.taobao.api.trade.taobaoke.convert.TaobaokeShopConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;
	
	import mx.collections.ArrayCollection;

	/**
	 * taobao.taobaoke.shops.convert Response
	 * @author fxy
	 *
	 */
	public class TaobaokeShopsConvertResponse extends TaobaoResponse
	{
		public var shops:ArrayCollection;

		public function TaobaokeShopsConvertResponse(response:TaobaoResponse=null)
		{
			super(response);
			initShops();
		}

		private function initShops():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("shops"))
				{
					shops=TaobaokeShopConvert.convertTaobaokeShops(body["rsp"]["shops"], "json");
				}
			}
		}

	}
}